package Helper;

import java.util.Random;

public class RandomGenerator 
{
	/**
	 * Constructs a new random generator
	 */
	public RandomGenerator()
	{
		generator = new Random(seed); // seeding
	}
	
	/**
	 * get random integer between min and max
	 * @param min
	 * @param max
	 * @return
	 */
	public int getRandomInt(int min, int max)
	{
		// next int returns random int between 0 and n-1
		int res = generator.nextInt(max - min + 1) + min;
		
		return res;
	}
	
	
	private Random generator;
	static private final int seed = 19580427;

}
